package orgamenu.metier;



	public class Repas {

		/** */
		private Plat entree;

		/** */
		private Plat platPrincipal;

		/** */
		private Plat dessert;

		/** */
		private Aliment fruit;

		/**
		 * 
		 * @param entree
		 * @param platPrincipal
		 * @param dessert
		 * @param fruit
		 */
		public Repas(Plat entree, Plat platPrincipal, Plat dessert,
				Aliment fruit) {
			super();
			this.entree = entree;
			this.platPrincipal = platPrincipal;
			this.dessert = dessert;
			this.fruit = fruit;
		}
		
		/**
		 * 
		 * @param entree
		 * @param platPrincipal
		 * @param dessert
		 */
		public Repas(String entree, String platPrincipal, String dessert){
			super();
			this.entree = new Plat(entree);
			this.platPrincipal = new Plat(platPrincipal);
			this.dessert = new Plat(dessert);
		}

		/**
		 * 
		 */
		public Repas() {
			super();
		}

		/**
		 * @return the entree
		 */
		public Plat getEntree() {
			return entree;
		}

		/**
		 * @param entree the entree to set
		 */
		public void setEntree(Plat entree) {
			this.entree = entree;
		}

		/**
		 * @return the platPrincipal
		 */
		public Plat getPlatPrincipal() {
			return platPrincipal;
		}

		/**
		 * @param platPrincipal the platPrincipal to set
		 */
		public void setPlatPrincipal(Plat platPrincipal) {
			this.platPrincipal = platPrincipal;
		}

		/**
		 * @return the dessert
		 */
		public Plat getDessert() {
			return dessert;
		}

		/**
		 * @param dessert the dessert to set
		 */
		public void setDessert(Plat dessert) {
			this.dessert = dessert;
		}

		/**
		 * @return the fruit
		 */
		public Aliment getFruit() {
			return fruit;
		}

		/**
		 * @param fruit the fruit to set
		 */
		public void setFruit(Aliment fruit) {
			this.fruit = fruit;
		}

		/**
		 * @return
		 * @see java.lang.Object#toString()
		 */
		public String toString() {
			StringBuffer sb = new StringBuffer();
			
			sb.append("<html><center>")
			.append(entree.toString())
			.append("<br> ------ <br>")
			.append(platPrincipal.toString())
			.append("<br> ------ <br>")
			.append(dessert.toString())
			.append("</center></html>");
			
			return sb.toString();
		}

		

	}
